<template>
<div>
    <p>b</p>

    <p>测试：{{$attrs}}</p>

    <input type="text" v-model="text">
    <button type="primary" @click="handleDoo">a</button>

</div>
</template>

<script>
export default {
    data() {
        return {
            text: ''
        }
    },
    methods: {
        handleDoo() {
            this.$emit('changeBoo',this.text)
            this.text = ''
        }
    },
    beforeMount() {
        console.log(this);
        
    },
}
</script>

<style lang="scss" scoped>

</style>
